package es.eupt.amazingpi;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.animation.AnimationUtils;
import android.widget.ViewFlipper;

public class JuegoActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_juego);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_juego, menu);
        return true;
    }
    
    public void flipView() {
		ViewFlipper vf = (ViewFlipper)findViewById(R.id.flipper_juego);
		vf.setAnimation(AnimationUtils.loadAnimation(getApplicationContext(), R.anim.slide_out_left));
		vf.showNext();
    	
    }
}
